package com.ruoyi.syf.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.syf.domain.RiskCheckDanger;

/**
 * 排查隐患Service接口
 *
 * @author yr
 * @date 2024-08-03
 */
public interface IRiskCheckDangerService extends IService<RiskCheckDanger> {

    RiskCheckDanger getByRecordId(Long recordId);

    boolean mySave(RiskCheckDanger riskCheckDanger,Long recordId);

    /**
     * 批量删除排查隐患
     *
     * @param ids 需要删除的排查隐患主键集合
     * @return 结果
     */
    public int deleteRiskCheckDangerByIds(Long[] ids);

    /**
     * 删除排查隐患信息
     *
     * @param id 排查隐患主键
     * @return 结果
     */
    public int deleteRiskCheckDangerById(Long id);
}
